package com.cskaoyan.shopping.service.remote;

import com.cskaoyan.mall.api.SearchProductService;
import com.cskaoyan.mall.commons.result.ResponseUtil;
import com.cskaoyan.mall.constant.ShoppingRetCode;
import com.cskaoyan.mall.dto.AllItemResponse;
import com.cskaoyan.shopping.service.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LY
 * @since 2022/06/26 20:52
 */
@RestController
public class SearchProductServiceImpl implements SearchProductService {

    @Autowired
    IProductService iProductService;

    @Override
    public AllItemResponse getAllProductItem() {

        return iProductService.getAllItems();

    }
}
